/*
 * @Author: 'zhangkeqq' '2211709169@qq.com'
 * @Date: 2025-06-20 20:21:34
 * @LastEditors: 'zhangkeqq' '2211709169@qq.com'
 * @LastEditTime: 2025-06-24 16:28:32
 * @FilePath: \vue3-ts-elementplus\vue3-admin\src\components\index.ts
 * @Description: 引入项目中全部的全局组件
 */
import SvgIcon from './SvgIcon/index.vue'
import Pagination from './Pagination/index.vue'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
const allGloabComponent = {SvgIcon,Pagination}

export default{
    // 务必叫install
    install(app){
        Object.keys(allGloabComponent).forEach(key=>{
            app.component(key,allGloabComponent[key])
        })
          for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
            app.component(key, component)
        }
    }

}